package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 试卷信息实体类
 */
public class TestInfo implements Serializable {

    private Integer testId;
    private String testName;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date testTime;
    private String testAuthor;
    private Double difficulty;
    private String link;

    @Override
    public String toString() {
        return "TestInfo{" +
                "testId=" + testId +
                ", testName='" + testName + '\'' +
                ", testTime=" + testTime +
                ", testAuthor='" + testAuthor + '\'' +
                ", difficulty=" + difficulty +
                ", link='" + link + '\'' +
                '}';
    }

    public TestInfo() {
    }

    public TestInfo(Integer testId) {
        this.testId = testId;
    }

    public TestInfo(String testName, Date testTime, String testAuthor, Double difficulty, String link) {
        this.testName = testName;
        this.testTime = testTime;
        this.testAuthor = testAuthor;
        this.difficulty = difficulty;
        this.link = link;
    }

    public TestInfo(Integer testId, String testName, Date testTime, String testAuthor, Double difficulty, String link) {
        this.testId = testId;
        this.testName = testName;
        this.testTime = testTime;
        this.testAuthor = testAuthor;
        this.difficulty = difficulty;
        this.link = link;
    }

    public Integer getTestId() {
        return testId;
    }

    public void setTestId(Integer testId) {
        this.testId = testId;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public Date getTestTime() {
        return testTime;
    }

    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }

    public String getTestAuthor() {
        return testAuthor;
    }

    public void setTestAuthor(String testAuthor) {
        this.testAuthor = testAuthor;
    }

    public Double getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Double difficulty) {
        this.difficulty = difficulty;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }
}
